function mb_image(&$viewport, $x, $y) { $imagebox = new ImgBox($this->marker_image); $imagebox->moveto($x - $imagebox->get_width(), $y + $imagebox->get_height()); $imagebox->show($viewport); }