Moving the $icons variable to a broader scope

Since the variable is used in the header, the sprites now are imported
before the header