Use NullLogger to reduce if() usage.
Update logger usage in the Image class.
Remove hasLogger() method. Just check ->logger.
Merge pull request #262 from dongilbert/NullLogger

RFC: NullLogger