1bfc10 update code following libpemagine's pre-alpha API update.

Authored and Committed by midipix 7 years ago
    update code following libpemagine's pre-alpha API update.