use Math.round instead of parseInt as geometry parser
fix widthOffset for setGeometry