Fixing to only process jpeg files