Image preloader helper

Feel like this needs some tests, but I don't know how to test that a image is loaded... 
Can we remove this last redundant comment line and add whitespace. Comments look a bit more separated like in the template: https://github.com/lonelyplanet/yeoman/blob/rizzo/javascript-component/templates/component.js#L1