A Structure based Methodology for Retrieving Similar Rasters and Images