Gravar-mail: Brain MR image segmentation based on an improved active contour model