Condition for preview image template