Finding the perimeter of irregular shapes or objects