allow toggle between uploaded images and plain text input for image source