Draft to add choice of image size. Fixes #39, needs testing.