Replaced ArrayLists with arrays for images