Fix resizing, so min(width, height) == the number