region resizing works again, now uses pixels as dimensions.