add disableDeviceResize

For the first part of #123, has issues with OpenGL if bitmap is too large