Apply jpeg rotation on image view page

Merged Mirian Margiani requested to merge fix-331 into master

Fixes #331 (closed).