guard a call to invalidate-bitmap-cache in
check syntax so it only happens when something
would draw differently