fixed a bug where the src of the image didnt load properly