A variable background active contour model for automatic detection of thyroid nodules in ultrasound images