Text this: An optimal algorithm for better efficiency in WMSN for multimedia applications