Fix some error of procedure
If the PictureBox of input has not image, user can not click it to segment region.