Changed background drawing functions to use float precision.