Fix to ImageLoader initialization issue