Fix resizing of transparent images