fix img to auto