Regenerate safely prestashop images with Ajax