Paper recognition and alignment - filtering small object, portrait vs landscape mode