Prestashop module to generate image with AJAX