bugfixed img-copying