Added function for invert color