Get image from server to play offline. Refactor code of single player