changed image coordinates to the cartesian plane