Played with openPhotoGallery(). Some minor mods.
Added photo model.