New: Added protocol CPImageDelegate.

Added protocol CPImageDelegate.
Also, now, delegate methods are called as we are used to do it in Cappuccino
Fixed: param of setDelegate: does not conform to protocol CPImageDelegate
Merge pull request #2089 from Dogild/CPImageDelegateProtocol

New: Added protocol CPImageDelegate