circle packing: add check if dimensionElement is not null