fixed bug with images.