Add style image state and listener functions to API.

Allows application code to be notified when the image is loaded.

Unfortunately, the enum will no be exported, see https://github.com/openlayers/ol3/issues/954
You may want to change this to an `@enum {string}`.