Implementing profilepicture url resolution fuinction