Added the ability to sort images and get unique colors