Nicer error messages for unfound variables
Fix rounding error in changing width and height of images