Analysis of symmetric patterns in images