The reason for saying "adding or removing" is probably because you didn't say what the error is, which makes it harder to help. If you're using Greenfoot Version 3.1.0 then you shouldn't have that line in your code, but if you have an earlier version then you need that line to use colors. All this might not help at all since you didn't say the error.
when ever i add a color with the code
myImage.setColor(Color.WHITE);
it always seems to be the color that has the error line underneath it.
i also did add the import java.awt.Color; Before!
using 3.1.0
You still didn't say what the error is, but if you're using 3.1.0 then you should NOT have that import. If you want to keep the import then do "greenfoot.Color.WHITE".