correctly cache sprite images