Extract colors from image