title: Can't embed a icon into a button
body: <p>Firstly I would like to start. I am a newbie to Python, and before posting a question I have done extensive research and trial and error through the various previous postings. </p>
  
  <p>Ideally, I am attempting to create a small tkinter frame with a label defining the frames details and three buttons. The buttons and labels work and the placement went well. Its when I attempt to add an Icon into the button that it throws me and error. </p>
  
  <p>This is the script so far:</p>
  
  <pre><code>import tkinter
  from tkinter import *
  
  def doNothing():
      print("doNothing")
  
  icon1=PhotoImage(file="icon1.png")
  icon2=PhotoImage(file="icon2.png")
  icon3=PhotoImage(file="icon3.png")
  
  W=tkinter.Tk()
  W.geometry("325x300+0+0")
  W.configure(bg="gray10")
  
  FRAME1=Frame(W, width=100, height =100)
  FRAME1.place(x=0,y=0)
  LABEL1=Label(FRAME1,relief=FLAT, text="Profile",font="Verdana 10 bold",width=25, height =1).grid(row=0, column=0)
  Button1= Button(FRAME1,relief=FLAT, width=3, height =1,command=doNothing).grid(row=0, column=1)
  Button1.config(image=icon1)
  Button1.pack()
  Button2= Button(FRAME1,relief=FLAT, width=3, height =1,command=doNothing).grid(row=0, column=2)
  Button2.config(image=icon2)
  Button2.pack()
  Button3= Button(FRAME1,relief=FLAT, width=3, height =1,command=doNothing).grid(row=0, column=3)
  Button3.config(image=icon3)
  Button3.pack()
  
  W.mainloop()
  </code></pre>
  
  <p>When I run this script, I get the following output.</p>
  
  <pre><code>Traceback (most recent call last):
    File "C:/Users/ADRIA/PycharmProjects/LATAM/TESTING CODE.py", line 7, in &lt;module&gt;
  icon1=PhotoImage(file="icon1.png")
    File "C:\Users\ADRIA\AppData\Local\Programs\Python\Python35\lib\tkinter\__init__.py", line 3394, in __init__
  Image.__init__(self, 'photo', name, cnf, master, **kw)
    File "C:\Users\ADRIA\AppData\Local\Programs\Python\Python35\lib\tkinter\__init__.py", line 3335, in __init__
  raise RuntimeError('Too early to create image')
  RuntimeError: Too early to create image
  </code></pre>
  
  <p>Any assistance to clear this up would be amazing. </p>
  
  <p>Cheers, </p>