Fixed an image.js issues