maintain file extension of original file