use object instead of img in iteration post upload