adjusted ImageAdapter to show images from ArrayList