Haskell and ImageMagick to rotate and trim an image