add option for loading cached images on the main thread, enabling by default.