Implement lx_CreatePixmap; flesh out error handling.