How to use the image editor to crop or scale