change vram from char* to unsigned char*, and add debug macro to LayerManager