MA man takes photos up women's skirts, court says it's legal