saving thumbnails as square images, adding rounded corners when displaying images