added code to construct an image based on downloaded colors