Fix EZP-23152: deleteVersion removes images from published version