Added code to support image delete button.