Hello James,
I think that the problem is in fact that you are building texture for the chunk.model object, while model variable is unchanged.
So you need either to use chunk.model.saveTexture() or reassign model variable after building the texture as follows: model = chunk.model.
Also it might be a better idea to use chunk.importModel() function.