fitframe1

First draft of fitframe function