implemented color inversion