remove assignment of windowed image to NULL