fixed special function to generate custom element graphics