simplified HDF5 frame writes so they're not running during CUDA kernal call. this is slightly less efficient but it cleans things up and probably won't be possible later anyway