... if and only if M is the perpendicular bisector of segment PQ.
_____
The image is the same distance from the line of reflection as the original (hence bisector). The distance of both to the line of reflection is as short as possible (hence perpendicular).