Image resizing works with transparent PNG.

Fixed an issue where PNG images with transparent pixels were resized
with a black background in place of the transparent pixels.