Added function to extract encapsulated pixel frames (works for the datasets I have but needs more testing)