Sorry, I think I may have solved it - the stack ID for whatever reason was ALSO not the same as the most recent object as it should have been, so in the mesagebox i changed the stack ID. This is something I didn't know could be done, but I guess I can, and the last image I imported got a new, unique ID. Phew!!! Lars