Image js changes

Thanks to @mikewnuk  for the heavy lifting, and to myself for adding a "{".