Added CustomImageExtension.php and modified _config.php