Fixing image not displaying bug