Fix image copying