fix for colored image whitening