Issue 3731: Moving resize_image() to include/lib/vital_funcs.inc.php