Added shape inside shape detection

Edited the default source to detect if a shape is inside another shape
and change the type of the outside shape (e.g. a triangle inside a
rectangle is a text div, circle inside rectangle is image).