Save doodle with Ajax