Update imageLoader.js

fixed issue #1