And I agree, but probably creating a new folder for each 3 photos is too much. Javi tells me that he suggested creating a folder for each resolution, which is fine for me. 

But still, keeping this implementation, you'd have the same problem with the folder name. A user could copy-paste a folder from other project, named 3/ and 4/. Never trust the user, always plan for the worst case scenario.