Set layout class on page instead of each photo.
Constrain photos to frame size.