Implementing image preview is breeze thanks to batman.js observers and JavaScript APIs. The goal is to have a user add an image to a file input and immediately preview that image. To accomplish this, we’ll turn the uploaded file into a data URI, then set that to the