Fixed thumbnailing/artwork generation.

A limit in OpenJDK for jpeg processing.