Asymtotically approching working correctly

I can now write some images with multiple chunks correctly