Changing imange pane to a component