Number centering issue resolved.

Profiles are now drawn using the paint event in the Profile class.