Implemented "saveAsPng". Resolved #1