Resize image to fit e-ink screen

Add resize_to_fit and extent so that the image sent to the badge is always the correct size. Thanks to Eric Betts (bettse) for showing how this is done.