Fixed quantizer, added png8 and tif support