New attempt at conditional PaintBox addition