Fix possible undefined offset in ColorThief.php on line 350.
Don't destroy a ressource passed by the user.
Throw an exception when a blank image is passed (Fix #11)