Feeding arrays as image data into fast.ai

I have some data in the form of a 28 x 28 array of integers. This array represents a 28x28 image. How can I use this for a ImageDataBunch in fast.ai?


The PIL library has a function so that you can create images from it and then feed it to the databunch.
fastai uses PIL to process images.

To avoid rewriting any of the functionality what you can do is convert all 'images as arrays' to actualy images (jpeg,png or whatever) so that the databunch as process it directly without having to write any other function.