Rewrote timestamp management to fix images without exif data