Fix issue where image layer content remain

When using in a UITableView fix issue where new layer content are added
but not cleared out.