An image segmentation variational model with free discontinuities and contour curvature