generic photo manipulation scripts, change template rendering in photos
controller, small fix in _gallery view