Flip y-axis to match matrix format