fix uri join issue with malformed image urls