idxToPng :: IDXData -> [PicTypes.Image PicTypes.PixelRGB8]
idxToPng idxData = map (matrixToPNG width height) imageMatrices where
  [numImages, width, height] = DU.toList (idxDimensions idxData)
  imageData = idxIntContent idxData
  imageMatrices = chunksOf (width * height) (DU.toList imageData)
idxToPng :: IDXData -> [PicTypes.Image PicTypes.PixelRGB8]
idxToPng idxData = map (matrixToPNG width height) imageMatrices where
  [numImages, width, height] = DU.toList (idxDimensions idxData)
  imageData = idxIntContent idxData
  imageMatrices = chunksOf (width * height) (DU.toList imageData)
idxToPng idxData = map (matrixToPNG width height) imageMatrices where
  [numImages, width, height] = DU.toList (idxDimensions idxData)
  imageData = idxIntContent idxData
  imageMatrices = chunksOf (width * height) (DU.toList imageData)