AMI: Implement copy_image.

This fixes issue #215.