implemented TerainGrid saving to .bmp