flip images, fix perspective