added method to create a image from color