Replace repetitive class names with 'constants' in Thumbnails Plugin.