fixing gray problems with images