Update image remove function