Move Imager outside of app.js

So it's not dependent on browser cutting the mustard

cc: @kaelig