attempt to solve out of memory error in imageMontageTask