fixed bug with images and multiple hosts