add checks that images decode/encode to the same value across runs