Why did you delete this assert of checking the width and height?