fixed copying over images bug