PDFImage_resize: copy in place with alpha and ~5x speed up

The implementation of PDFImage_resize was very basic.
Also when ColorSpace_fillRgb needs a resized copy with alpha, there was an unnecessary copy with padding for the alpha.

This PR also saves memory and garbage collection.