OK I found what's wrong, change the line to this
Code:
camera.aspect = (sys_metrics(0)/4)/integer((sys_metrics(1)/3));



Now you can add any mode you want and you will got correct aspect.