Adding image-attach and image-detach to osx