Fixes processing/processing#1810 where a png data would be written instead of jpeg data.
Merge pull request #1819 from OffenesFELD/master

Fixes processing/processing#1810 where a png data would be written instead of jpeg data.