Still working on the auto rotating photos

Only thumbnails left to fix.