Write text using opencv