crop_gravity, use integers rather than strings

Storing dimensions as integers makes a whole bunch of problems go away.