Fixed how images are loaded