optimize bitmap decoding to use RGB 565 when available