Import of rasterview sourcecode from http://www.msweet.org/