Revert "Makes getFrame return a shared pointer in the headerFiles."

This reverts commit 65d20338f66bd9dffd04c8ccf01bc15c8e09dacc.
Makes getFrame return a shared Pointer.