Added a sample, fixed issue with reading Global Color Tables
Made Global Color Table detect change to Local Color Table just in case.