Tidy up photo modal code, remove orientation/dimensions from gallery image as it was causing android problems