Update image_functions.php