added basic support for image attributes
fixed bug in abstract search class
use location model constant to define entity in setup scripts