Added GraphicsItem clearing.