added square tf frame. modified vision.cpp