add template cover photo logic