adding null check when fetching remote image urls