Improved some thumb.php error messages.

Change-Id: I5a61e898dd97db67b719a13ca044530c4baecc99
(cherry picked from commit a04d9cb7487773e102285de13b7092a2bc9b6821)