Add support for 8 and 16 bit Surfaces/Textures. Clean up and update.