fix copy images issue