Initial background rendering function.