Altered getFrame method to avoid creating globals
Committer: MannyC