Fix the renderSkin method

The function return now the created image correctly so it can be used directly inside an html img tag by encoding in base64