There are two parts. The second part, the <style> definition, is already part of SoSci Survey (at least on www.soscisurvey.de) by now, so you need not to take care about that any more.
For the first part, is depends where you have put the image. If you just dragged it into the questionnaire, you can instead drag an "HTML code" element into the page, and paste the code there. If you used the image within an item, replace the <img> tag by the <div>+<a>+<img> part of the above code.