shell script to change the file structure

Things to be discussed
1. which folders are to be created
2. if an images has 2 types files in a same folder, which file is to be
copied. and if all the files related to an image is to be copied then
are they supposed to be in same folder or different folders