Thumbnail creation fixed