Fix writing for JPEG files
Added copyright to PNG file