added smarter cutout, gradients to define edges