PIL's loop = 1 makes it loop twice in total, loop = 2 loops thrice, etc.
loop = 1
loop = 2
To get it to loop exactly once, remove the argument of loop completely, it defaults to once.
loop