Fixed issue where images were being loaded on the UI thread