Added a per page option to related photos