Bug fix: move picture sending out of WiFi onReceive