Graphics engine based on Direct2D