added saving of rgb frames