Shorten local URLs and automatic image tags