Fixed wrong conversion order and updated radiance scaling template