moved ms image hack to head