Added option to use GPU rendering or not.