getTextureFromSource(source) {
        const src = typeof source === "string" ? source : source.src;
        // return the texture if the source is the same and if it's not the same texture
        return this.textures.find(element => element.source && element.source.src === src);
    }
Check if this source is already in our cached textures array

     params :
     @source (HTML element) : html image, video or canvas element (only images for now)
*