Fixed bug with images not displaying