Moved graphics to a dedicated file.
Fixed a bug that prevented compilation.