chore(docs): Fix gatsby-image examples (#14851)
chore(docs): Fix gatsby-image examples (#14851)

There are two examples in this docs. I was learning how to use gatsby-image and pasted the code examples in my local example to find errors about there's no ```query``` which has been imported. I read through the useStaticQuery docs to figure out how to make this work. I have made the changes which make the examples work. 

PS: This would be my ever open source contribution??????
ChristopherBiscardi/gatsby,ChristopherBiscardi/gatsby,ChristopherBiscardi/gatsby,ChristopherBiscardi/gatsby,gatsbyjs/gatsby,gatsbyjs/gatsby,gatsbyjs/gatsby,gatsbyjs/gatsby,gatsbyjs/gatsby,gatsbyjs/gatsby