Thank you for the response. The Image:ExifTool package is what I was looking for. I didn't realize that image files had their own set of metadata, including a timestamp which is different from the file datetime information returned by the stat function.