removing of graphical element from part model when it is removed from gr...

...aphical model, fixes #984