Content Based Retrieval for Compressed Image Database