Fixed a bug in draw.c and re-added blend equations