I think there should also be `instanceof lime.fill.Color` check. So it will return false if you compare a color fill with a image fill for example.