improve bam2raster