Added checkCorners param in case you don't want hard edges.