設定で指定された名前で画像を参照する方法

補間を使用して設定を直接使用できると思います。

background: transparent URL(\"$#{$hat_type}\") top left no-repeat;