PaintPlugin: added opacity, fixed widget destroying