fixed some issues with images not being displayed