Added port support to images url generation