Some changes in image.php