Don't act on format of image and then read alpha channel from noneScaled.
Fixes wkhtmltopdf/wkhtmltopdf#1638