changed numberOfImages to 8