Ibrahimovic 'optimistic' in Barcelona