fix img boundary