Fixed bug - all images were being deleted when removing an image tab.