move sprite loading to memory