Adding universal graphics routine