[GEOS-6454] Gray + alpha images not rendered encoded correctly in PNG