trimming image url length