Various improvements.

* Added support for .JPEG and JPG (capitalised) extensions
* Added fix for empty timestamp strings
* File names are now prefixed by exact time