fix last image removal