Incorrect prints from the program when using offset to calculate EXIF data and at the same time rename.