[#72912212] Progressively try smaller sizes on OutOfMemoryError
[#72912212] Bump up IMAGE_MAX_SIZE now that we avoid OOMEs
[#72912212] Better logging in case we hit an OutOfMemoryError
Merge pull request #2 from petedoyle/master

[#72912212] Progressively retry smaller sizes on OutOfMemoryError during rotate