Added generation of a square image for use on the block (to maintain aspect ratio)