Modeling the pion and kaon form factors in the timelike region