added support for writing PNG format images with dump image
add docs for compiling with PNG