Joe Cole rescued a 1-1 draw for West Ham after record-signing Loic Remy scored for Queens Park Rangers on his debut at Upton Park.