test images
correctly flip image