fixed race condition: call callback if sprite is currently rendering