Added clause to return first image if no mobile image is selected