added MgImageCreateByDrawing()