added deleting of s3 image when item set to inactive