multiview: fix for ImageNode and UV/Image Editor

The Image Node was also using the same code (BKE_image_multilayer_index)
so better to solce the Image Editor selection problem in the
image_buttons.c itself.

I created a function get_pass_id() to convert the pass_tmp (defined in
the ui) to pass (pass id in RenderLayer->passes).