RepositoryServiceImpl: Fix removing image file with thumbnails

Artem Hrybeniuk requested to merge fix-remove-image into main

Merge request reports