Fix JS caching bug with multiple image uploads on same page