Updated flight test code to flip the image