fixed api errors and model image errors