Fixed issue where Image is created on a non-main thread.