Disabled optimizations for img.c to fix addressing bug
Added BSOD
Fixed critical image buffering issues