changed imagepanel to mvvm style