Support Uri instead of just file path as image path