removing duplicate file and image fields