public synchronized Image getImage() { Image image = new Image(); for (Taxi taxi : taxis) { image.drawMarker(taxi.getLocation()); } return image; }