Fixed a bug with image resizing. Output distance field should now be the desired size (as specified by user).