Run initWebSocket() after bg image loads