fixed issue with images not loading properly