helper function for showing proof image