fixed bug visible var not defined when post not has image