Update render code to eZ 5.1+ and >=2013.4