Add support for saving JPEGs instead of PNGs