Adding loop to find the first suitable sufix for image version
Using exif data if availabe to determine the created time, otherwise use mtime