Dubble us gone but not forgotten...
The code based on gatsbygram https://github.com/gatsbyjs/gatsby/tree/master/examples/gatsbygram