changed palette conversion algorithm to a faster one using unique colors only
updated readme with example