Update image_data_layer.cpp

fix bug for getting new width