Adding code for displaying object images instead of lines, when connecting nodes