Automatic save upon mouse release (drawing a new segment) and small bug fixes
Added libraries and functionality for picking color