I'd use a coordinate system with its center at the center of the 5x5 matrix. Each LED then has x and y coordinates from -2..2
For a radius r do the following:
- Loop over all pixels and calculate rp = x*x + y*y.
- if abs(rp - r*r) < delta switch the LED on.
Play with delta to get "nice" circles.