Thumbnail helper for CakePHP 2.0 and above.