Fix incorrect dimension issue where the element selected has margin or padding.\n\nCloses maxwell/screencap#12