improved img_map in wepplugin