Add the missing copyImage method.

fixes gh-306