Wrote an isolated create thumbnail script.
Changed Image import for compatibility reasons.