allow other formats than png for thumbnail creation