preserve photo file extension