Fixing images bug