Hacking together square picture resizing
tweaking image resizing