I feel happy that I finally did it, without any help. But at the same time I feel exhausted and want to cry because it was such a stupid mistake and took me so long to figure it out. All along, I was thinking i.left = img.width * 0.5; can't be what's causing the error!
