Initial sprite code. Image cache and atlas loading.