Annotation preprocessing script, reading images from the folder