Rotation of photo browser and code cleaning.