Update rtmedia_image function for extension wise thumbnail option