Fix the Lut functions so they support all pixels packing formats