Fixed F matrix width and height calculation. +1 was missing.