Fixed bug - removing image tab did not remove the loaded image.