Adding working version of the function to convert spectrograms to ascii rasters