Fix update of the thumbnails when selecting a variant

Hi (and sorry for the duplicate PR),

in the rails4 branch I've found a problem where the thumbnails/product image was not updated when clicking on the variant.

The variantId received by the showVariantImages didn't match the attributes of the thumbnail, which didn't have the .vtmb-<variant id> class anymore.