fix for 8-bit PNGs