Improved CreateThumbnail action. Now receives an optional scaling. Also refactored the thumbnail creation process.
Improves CreateThumbnailTest.