During resize don't repaint shape if shape is not provided