Added auto-orientation for images and fixed issue with photo colorbox popup