Set resizeCallback as private method instead of public