Fix loading images issue