Sped up bitmap extension for getting HTML palette