fix sample bugs and add 'remove image' function
fix bug