don't append .jpg to filename, since the filename would already have this extension