creating a way to fetch an image url