Replaced parseInt with parseFloat to support sub-pixel values.  Merges #185.