added geometric complexity calculation to mitigate long sharp shapes. works best with rectangles at the moment