Remove redundant xsize and ysize