added SIFT write function