added support for naming graphics