Using NotePad++ create the following text file and copy it to the root directory of your image:
country=gb
update_config=1
ctrl_interface=/var/run/wpa_supplicant
network={
scan_ssid=1
ssid="WIFI-NETWORKNAME-HERE"
psk="WIFI-PASSWORD-HERE"
}
Then set the file as Unix EOF: