fix: empty image_tag list before copy new tags

A small mistake makes this script useless. Now it should work as it should.