Fixed wrong dimensions

The last dimension is the fastest changing one. That means the first dimension is
the frame number. Corrected so this is true.