move frame function into shape class