Convert non-square images to square images with automatic or custom padding.