Add necessary libraries for graphics.