fixed bug with images