Fix patch size in viewer