Added custom deleter for graphics types