fixed a bug when adding a new image