Added possibility to remove images, ref #5