Adaptation of rgsmoothgallery by Georg Ringer for TYPO3 6.2.x