adding remote image code