fixed loading images asynchronously