Added image copy functions.