Normalize method for resizing