Copied Cody's media stuff into the EditAnnotationActivity.