I am wondering how to move a image to a secure folder after it has been uploaded to a 777 folder?

Below is the code I use to copy the image to "pictures" folder. What I like to do is move it to say pictures2 folder which would be 755

PHP Code: