replacing pics with url