Finally fixed the image flips