Fixed a bug in the thumbnail generation from dcm4chee