add new segment with image

Allow creating a new segment using UIImage or image name.