Image-draw using require.js (bug in magnifier)