added new card model
now showimg images well conditionally
moved Query model into models
moved card into models