add a function for changing color of image