fixing images not being displayed