Issue #8265 by tj: Removed debug. Added yet better thumbnail naming