I have no idea why this small file is having issues saving a proper jpg.
Are you including a color profile? What metadata are you including with it?
How many pixels (h x v)?
50 kb is not all that big. Does your image have a lot of detail in it? Content can affect final compressed size.
Retrieving data ...