Add copy image function for image display dialog and add subimage
function for image type.