optimized debug options
fixed deletion on S3, so only one media will be deleted when we have two medias with different file names but same hash value.