add (optional) index argument to RetrieveFrame method
Merge pull request #866 from MadEgg:RetrieveFrame_index_argument