Store and expose result of latest encoded image.

Cache the encoded image on the object.