fixed processing of "image/jpeg" that was broken by previous revision