Thanks for the responses, from which I was able to get the pictures working.
Now a related problem - if there is no picture associated with a particular lot number, I get a dead link icon where the picture would be if there was one.
Is there an 'if picture exists then display else nothing' syntax I can use to avoid this?
Thanks,
Brendan