Text this: Design of Branch Definition Algorithm for Top-k Inverse Queries for Image Processing