small changes in configuration + method for finding biggest preview size