Added functionality to write the quad image with parameter list.