Remove IIFEs from image_file.js

This is part of &2074 (closed).

We want to get rid of IIFEs in app/assets/javascripts/commit/image_file.js.