Limiting the number of photos