refactor services
change only little about code format.
add mem cache. later will have disk cache
remove unused compressor
get primary images instead of cached images.
add logger about resizing and calculating
remove unused resources.
add compute sample size
done with compressed size too large problem