Fitting agent-based models to tumor images using representation learning