[trunk] significantly reduces memory for single tile RGB encoding (fixes