fixed a bug with image URLs