Add MgCoreShapeFactory.createShape() and MgImageShape.getImageSize().