Fixing the url invalid issue that I previously introduced

I didn't previously make the port number on the image url optional. I promise that I'm going to stop breaking this thing.