I'm not sure that I'm clear on what results you are seeing. Are you seeing 1 total image, or 5 of the same image? Here are a few thoughts that hit me looking at your snipit. It would probably help to have some additional information.
Is the variable name being initialized somewhere?
Does name represent a legal value to your image server?
It doesn't appear that you are changing name in your loop... so if you are seeing 5 of the same image, that could be a reason why.
Do you see 5 img tags in the HTML that is rendered to the browser?
That should be enough to get started. That being said, using a .aspx page is going to be much slower then implementing an HTTP handler to field the requests, and caching strategy will play a big part in response time. Dino Esposito wrote a nice article[^] on dynamic image generation that may give you some inspiration. Hope that helps. :) --Jesse