Fix some errors for rating images generator