Get rid of JPEG encoder limitation in which it'll only work on images with dimensions that are multiples of 16. Patch from Nathan Egge.