check file extension

append if file type is jpg