make number of pictures/page a config option; replace "offset" with "page"