Add ImageField "logo" to Instance model

Also add safety code to imageUploadPanel.js