fixed some bugs in 2d model

auto centering on robot, auto resizing scene