Allow image/jpg as well as image/jpeg

Passing a jpg data URI with the wrong data header currently causes an
error from getJpegSize.  This commit replaces 'jpg' with 'jpeg' in the
data URI and removes that error