implemented ideogram within flask framework