How to use the image editor to rotate or flip