A Query Expansion Framework in Image Retrieval Domain Based on Local and Global Analysis