Improved image memory management

Large input data now broken up into smaller chunks to avoid (silent)
memory allocation failures in QImage.  Export now potentially creates
several images, depending on the input data size, chunk size, and
display parameters.