If you are strictly talking about WSS 3.0 (and not MOSS), then you really do not have global user profiles as such, but a hidden list of user data in each site collection. This means that none of the material in the Microsoft.Office.Server namespaces is available to you.
However, you can update the list of user information programmatically if you know the URL for the user image. While you are using some kind of elevated privilege, you should manipulate this list in the same way as with any other SharePoint list. Keep in mind that this list is only for the site collection area, so users will need to do the same update everywhere to actually have the URL of the photo. Plus, users do not get into the list of user information until someone assigns them some permission, so not every user in your domain will be there.
The clean way to deal with this is, of course, the user profile mechanism - this is MOSS, but if you really need to update this parameter to ask about MOSS and WSS.
source share