updated code to load the profile images for each user