Made the process of building a frame a function.
Merge pull request #10 from rodkaroma117/develop

Made the process of building a frame a function.