fixing issue with custom asset host

if a custom asset host is configured, a broken image is displayed after uploaded until refresh