Methods for adding exif tag from JPEG fixed duplicated code