Implemented palette reading and support for 4bpp images