Hi Laksen,
Thanks for that. Yes, I saw that in a thread that came up when I was searching originally for a solution. However, when I tried that before (and again, now), the debugger goes back to my original declaration of the procedure and says it's a forward declaration. Just to let you know, the procedure is declared in the Form at the beginning and the loop to set up the images and their procedure is in the form's FormShow handler.
I'm sure you're on the right track, so what am I doing wrong in the declaration of the procedure?