Combining multiple images into a single predictive model using R