Issue #48: moved code from IconPanel operation to DragElement class