Queue a resize when update_state is called.

A new image will be set, and the image may have a different size to the
last one. So we need to do a resize accordingly. If we don't the scrollbars
will be all wrong.