a preliminary grab cut implementation... not working perfectly