image removal working : updated delete function