Image: added support for image resource cloning [Closes #1329]