error reporting for model::query() and work on ImageModel::newImage()
test for ImageModel::newImage()