Added Image.php
Improved error handling

Added method `->isError()` to catch errors in other class methods.
Added public static variable $throwExceptions to set whether errors
should be displayed or not.
Changed $chmod to static class variable