I would like to suggest 2 improvements to the proposed solution:
A. The for file in "$arg"/.{jpg,jpeg,png} will also produce "$arg"/.jpeg if there are no files with jpeg extention and that creates errors with scripts:
$ echo *.{jpg,jpeg,png}
myPhoto.jpg *.jpeg *.png
To avoid that, just before the for loop, set the nullglob to remove null globs from from the list:
$ shopt -s nullglob # Sets nullglob
$ echo *.{jpg,jpeg,png}
myPhoto.jpg
$ shopt -u nullglob # Unsets nullglob
B. If you also want to search *.png or *.PNG or *.PnG (i.e. ignore case), then you need to set the nocaseglob:
$ shopt -s nullglob # Sets nullglob
$ shopt -s nocaseglob # Sets nocaseglob
$ echo *.{jpg,jpeg,png}
myPhoto.jpg myPhoto.PnG
$ shopt -u nocaseglob # Unsets nocaseglob
$ shopt -u nullglob # Unsets nullglob