Fix incorrect dimension issue where the element selected has margin or padding.

closes maxwell/screencap#12