Improved image handling.
Better image processing for imagepdf.go