Update image.php

Fix errors