Add missing IsVisible check to draw code