Update image and file deleting