fixes for local and remote image links