Fix a bug where the background image of an element is potentially not clipped.