Reverse the y-axis range so that pixel coordinates are positive