Use ```XSIZE``` constant to remain consistent with ```_read()```. Same for y_dim value.