Fix #235. Mr @igorsobreira is on fire, lol!

Now CMYK JPEG images should work properly.