Cross platform framework for creating 2D graphical applications