add jpg file extension to filename