It will be necessary to dynamically allocate the amount of memory that a batch job will require. The size of an image plane should be determined in the scan phase and this information passed forward to the extraction step function so that it can override the default 1024MB with something appropriate for larger images when launching the batch job.