Revert "Revert "Return back thumbnail algorithm""
Revert "Revert "Return back thumbnail algorithm""

This reverts commit 2bd4efe163b78c15bc407ba2b19c9ffccffb6bec.

boretskyi/boretskyi.github.io,boretskyi/boretskyi.github.io