Only write metadata file when there are images.  Removed Convert