fixed bug with removing exist images