You could just implement your own draw* commands in the dll.

Seems like you're trying to extend picture windows anyway, why not just add your own functions? You could even alias them in mIRC so that they use the same syntax as the existing commands.