Update image_data_layer.cpp

fix bug for getting new width
Merge pull request #805 from alfredtofu/dev

Update image_data_layer.cpp