Resolved issue #1760 - getThumbnail() now returns an object instead of a path.

This is basically a resubmission of https://github.com/pimcore/pimcore/pull/41 but from another branch.

The original changes were made in my master branch, but because it has still not been merged into the Pimcore it keeps giving me trouble because our masters are not in sync.