Image resizing

Closes #105.  (as well as the other mentioned in the commits)