feature: Rotate and resize images if needed.
When uploading an entry with an attached image, we examine the image to see whether its EXIF tags specify a rotation, and rotate it accordingly if required.
In addition, we check whether the image is higher or wider than 1024 pixels, and if so, scale it down to fit inside a 1024-by-1024-pixel box.