Hi Tom, can you put up the page where you have the problem? Sounds like the sent parameter is wrong + that it adds the .jpg to your itemID. :)
"onerror="this.src='images/default.jpg" is that for showing if there is no image uploaded to the item? If it is, maybe you should change it to a "Show if" instead.
//Morgan