Rename buffer to destination when dealing with graphics