Add trim to image url