Improve getFrameData so that it doesn't rely on hacky string detection