put images into array and remove if/else