add get_frame function fixed #74

This will fix the #74