i used a simplified method

fixed relations
if ( f > 1 ) {
  fdraw = 1;
}
else {
  fdraw = f;
  }


Lens X size
= size*2*1/(fdraw+1)

looks better now ;D