add image model and table
put paths in globals instead of just constants
resize job and gallery paths
the resize job doesn't do the move to working-dir, that'll happen in-request
can specify the directory from the input form now (as text)