succefully loaded a local image and displayed it in the main window