LBP border handling

fixed the padded version of the border handling
Project settings