add .jpg to the temporary filename