proper fallback for thumbnail in functions php