Resize script now able to add optional border