Refactoring for use with TYPO3 6+

git-svn-id: https://svn.typo3.org/TYPO3v4/Extensions/cag_magstyleimg/trunk@81064 735d13b6-9817-0410-8766-e36946ffe9aa