fix #23291

Adding .jpeg and .gif to the list of allowed extentsions and formats.
small ommision
change error message
Merge pull request #510 from Jojo-Schmitz/jpeg

fix #23291