Update window_data_layer.cpp

fix bug for resizing image