Write image files to output folder