ok i had an idea on how to make this work, without the query load, it was gonna make a function to pull the information all at once. however i think i've done that, but i'm not really sure how to do the rest of this, if anyone has any ideas on how to do this, then please post. my minds just gone blank so i have no idea quite what i'm doing.
basically to pull the image it's literally
HTML Code:
<img src="$vboption[galleryurl]/data/$ppost_catid/$userid$ppost_bigimagename-thumb.jpg" />