Update functions.php

Changed createThumbnail() to support transparent PNG thumbnails.