Renaming images and matrix storage

Renaming images and storing them in matrix for processing