Fix issue when loading images in Chrome