Adjusting raster size calculation and adding some logging.
Merge pull request #1 from Schpidi/rastersize

Adjusting raster size calculation and adding some logging.