new way of checking for external images