expose setScaleMode callback