flipping image for opencv coord