Properly calculating $content_width according to templates etc.