Possible fix fot thumbnail creation.