Add photo pages and thumbnail pages, also move uploading to photos file