added code to download user's avatar images