Added the IfModifiedAttribute to help proper image caching.
Changed image saving to JPEG.