Merged ImageFunctions.php into GlobalFunctions.php