Persist state of image preview checkbox. [1726]

It turns out that there was already code to persist the selection. The
reason it wasn’t working is because we needed a boolean value and it
was saving an integer value.