blah
fix WriteJpeg def which got lost somehow