Added support for graphics cards that require canvas to be a power of 2
in size