fixed bug in Image.php