Stabalized the LBP code generation (might hvae introduced some trouble with double images, we will see later); corrected LBP test cases.