A CNN-based Framework for 2D Still-image Segmentation