Added db method to retrieve images