shorten image paths