Fix for images not displaying properly