added possibility to fix dimensions for a patch