[eluser]PhilTem[/eluser]
I'm not sure if this solves your problem, but it will at least narrow down where to look for:
Code:
<?php if( $img->{image.$i} != 'nopic.jpg' ): ?> // if an image was uploaded by user
If you want to address all attributes image1, image2, image3, ... and so on and so forth for $img, it should be the solution. Otherwise you would have to clarify what exactly you want to get