Fix generating of images url