made callback compliant with new seadragon function call