You might be able to create thumbnail with this class.