fixed bug causing crash when trying to draw undefined optional graphics