I modified a template which I download from this website.
Add/delete some functions.
Basically I use it with my touchpad. It's ok when the photo folder contains not too many big photos.
Hope someone can make it download first 10 photos, then keep downloading the others in background.
Now the template had to wait all photos being downloaded, then divide them in pages. It's not ideal.