Added DMA2D mode selection