public function render(MarkerImage $markerImage)
    {
        return sprintf(
            '%s = new google.maps.MarkerImage("%s", %s, %s, %s, %s);'.PHP_EOL,
            $markerImage->getJavascriptVariable(),
            $markerImage->getUrl(),
            $markerImage->hasSize() ? $markerImage->getSize()->getJavascriptVariable() : 'null',
            $markerImage->hasOrigin() ? $markerImage->getOrigin()->getJavascriptVariable() : 'null',
            $markerImage->hasAnchor() ? $markerImage->getAnchor()->getJavascriptVariable() : 'null',
            $markerImage->hasScaledSize() ? $markerImage->getScaledSize()->getJavascriptVariable() : 'null'
        );
    }