Flask Handle Images Generated By AI