function wiziapp_processImageForThumb($src, $size, $limitSize)
{
    $showedImage = FALSE;
    if (!empty($src)) {
        $image = new WiziappImageHandler($src);
        // The original image
        $image->load();
        $width = $image->getNewWidth();
        $height = $image->getNewHeight();
        if (intval($width) >= $limitSize['width'] && intval($height) >= $limitSize['height']) {
            if (intval($width) >= $size['width'] * 0.8 && intval($height) >= $size['height'] * 0.8) {
                //$imageUrl = $image->getResizedImageUrl($src, $size['width'], $size['height'], 'adaptiveResize', true);
                $image->wiziapp_getResizedImage($size['width'], $size['height'], 'adaptiveResize', true);
                $showedImage = TRUE;
            }
        }
    }
    return $showedImage;
}