fix moaiimage crash when loading palletized png