adding methods to save resized image padded to square