add main frame
set window size
choose file image