Changed image retrieval from imperative to declaritive methodology.