Migrated from PNGDecoder