Add javascript to support showing image on resource edit view