Delayed the setting of the texture property and added callback for image loading