Update image.php

Fixed Exception-throwing statements were a closing parenthesis was missing.