stripping image urls down to basics