Writing a png file using a callback works.  Loading a png file using callback doesn't work. Fiddling with JSmolCore.js.