added null check for image url map