defer image loading (bug 898320)

Was backed out last push.

- Addressed issue brought up by @cvan where the nunjucks global was being set after the page was loaded.
- Detail page screenshots still delayed, trying to figure out how to trigger the image load after getting the app info but before ratings.