Found something similar on shadertoy [1] from 2013.
Of course the geometry is handcoded in this case but it would be a good starting point to implement something like this via shaders in WebGL and use it for all your images on your Webpage.
[1]: https://www.shadertoy.com/view/XdlGzH