Ruby script to make pictures smaller for small prints and email attachments