def maybe_imgur(self, path):
        '''Uploads a file to imgur if requested via command line flags.

        Returns either "path" or "path url" depending on the course of action.
        '''
        if not FLAGS.imgur_client_id:
            return path

        im = pyimgur.Imgur(FLAGS.imgur_client_id)
        uploaded_image = im.upload_image(path)
        return '%s %s' % (path, uploaded_image.link)
Uploads a file to imgur if requested via command line flags.

        Returns either "path" or "path url" depending on the course of action.