Fixed async race condition issues and added tasks for copying data, images and sprites.