jpeg exporting now supported again, using simple public-domain code