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

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