Fix optional image caching
Only download avatars for valid URLs

Can easily determine if URL is valid by checking if URLWithString returned a non-nil value.