@Override
public BufferedImage init(DisplayImageDIResolver resolver) {
BufferedImage tmpImg = xmlLoader.getImage(SCENE_IMAGE_NAME); // portScene
ImageData imgData = xmlLoader.getImageData(SCENE_IMAGE_NAME);
ImageScaleState state = new ImageScaleState(new Dimension(tmpImg.getWidth(), tmpImg.getHeight()), getBounds().getSize(), imgData.getCrop(), imgData.getMaxCrop());
logger.debug("State of the market place scene before: "+state);
BufferedImage img = imageUtils.cropAndScale(tmpImg, state);
scaleMap.put(SCENE_IMAGE_NAME, state.getScaleFactor());
Rectangle bounds = imageUtils.computeBounds(getBounds().getSize(),new Dimension(img.getWidth(),img.getHeight()));
initPolygons(resolver, imgData, state, new Point(getBounds().x+bounds.x, getBounds().y+bounds.y));
logger.debug("State of the market place scene after : "+state);
xmlLoader.replaceSingleImage(SCENE_IMAGE_NAME, img);