Fixed all the warnings related to the graphics.