Image plugin cleanup when removing an image