Updated to work with and without blaze

Hi Eric,

In preparation to the upcoming blaze release, I made some changes to the package to make it work both with and without the new rendering engine.