Fix image copy

See issue #104