Update dialog.php

with resize button if in the config $image_resizing is set to true