final ScannedMap m = (ScannedMap) getModel();
final Image image = new Image(Display.getDefault(), m.getFileName());
final ImageFigure fig = new ImageFigure(image);
final Rectangle bounds = image.getBounds();
fig.setBounds(new org.eclipse.draw2d.geometry.Rectangle(bounds));
fig.setLayoutManager(new XYLayout());
fig.setAlignment(PositionConstants.NORTH | PositionConstants.WEST);
if (m.getUpperleft().equals(m.getUpperright()) && m.getUpperleft().equals(m.getLowerleft())) {
m.setUpperleft(new Point(25, 25));
m.setUpperright(new Point(bounds.width - 25, 25));
m.setLowerleft(new Point(25, bounds.height - 25));