clean up image updating method