code: function onLoad(event) {
          var img = new Image();
          img.onload = utils.getDimensions(canvas, vm.$storage);
          img.src = event.target.result;
        }
docs: Wait for the reader to be loaded to get the right img.src