added canvas-to-blob, this will be useful for photo uploading later
added API