It might be easier to provide more helpful suggestions if we knew more about what you are trying to accomplish at a little higher level. What are the inputs and what are your desired outputs? Are you breaking the image data into chunks for AI training purposes, memory management purposes, or some other reason?