check if image changed before updating proof

this fixes #46