Added check to see if the image is an isaac api provided image or an external url and handle them differently.