Consolidate image writing functions in rendering library
Currently the Canvas
class has custom implementations for writing png/ppm image files in the SaveAs
function. This implementation should be replaced with those available in the ImageWriter
class in the io library to avoid having multiple implementations.