Changes to the main functions
Copy constructor for image class