better support for remote images