Ensure files are readable by the webserver (not just visible).
Tell browser to prefetch next image and prerender next page.
Tidying handling of filenames & resizing images:
- new cache_dir method,
- picturepage filename method
- improved some log messages
- changed some variable names for clarity