Refactored image uploader to allow for multiple image/file uploads