This class creates thumbnails optimal way.