fixed creating graphics without video device