Don't edit attributes in-place on drag
Added rect creation