Implemented GenericDataContainer for imagequery
Accidently reverted imagequery.coffee in one of the last commits; fixed here
Added distance sorting and output