Removes the named image profile and returns it.