switch to .jpg for correct mime type