fix img type