append extension jpg to filename