Fix #1138 #1139 : Consecutive Image Tools calls may fail
Merge pull request #332 from romainneutron/install

[3.7] Fix #1138 #1139 : Consecutive Image Tools calls may fail