Allow slice image when copy source Image

Defining an optional $size parameter in copy function i can create a new image with new size. Useful for image slice without resizing.