https://github.com/bgamari/photon-tools
