Graphics library for TFT displays