Adding image grab code