implemented calcRectFitImgWH
doc
bumped version number to 0.4.0