made transformation from image to physical coordinate system work