Added the file copy function for Image Handling