Add 8bpp support.

Hi find attached a patch to add support for 8bpp for fb-test and rect