Update image.class.js

check callback and decide if to load sync or async