getImgFromCache(img, callback, param) {
    const src = typeof img === "string" ? img : img.src;

    if (imgsCache[src]) {
      callback(imgsCache[src], param);
    } else {
      const image = new Image();
      image.onload = e => {
        imgsCache[src] = e.target;
        callback(imgsCache[src], param);
      };

      image.src = src;
    }
  }
@memberof Proton#Proton.Util
@method getImgFromCache

@todo add description
@todo describe func

@param {Mixed}               img
@param {Proton.Particle}     particle
@param {Boolean}             drawCanvas  set to true if a canvas should be saved into particle.data.canvas
@param {Boolean}             func