removed redundant logic that separates first image from rest