Text positioning improvement

The old code relied on a fixed x,y coordinate on the screen.  This would
mean that the image would only appear correctly on a single resolution.

This patch is the first step towards allowing things to dynamically change
to fit onto different monitor sizes.