update arraylist for image