Add sprite loading logic.