A lightweight framework for displaying 2D graphics