Makes getFrame return a shared pointer in the headerFiles.