Factored ui_menu_control_device_image into ui/imgcntrl.c