function onLoadFile(event) {
                    var img = new Image();
                    img.onload = onLoadImage;
                    img.src = event.target.result;
                }
The ng-thumb directive
@author: nerv
@version: 0.1.2, 2014-01-09