added a way to load the image