Images and selected curves can now be removed by clicking on the image