Factor out checking of a single picture frame's hash.