Choose a border type
mainWhen using the border() method, you can specify how the border is applied using BorderType constants:
BorderType::Overlay: The border is added as an overlay on top of the existing image content.BorderType::Shrink: The image content is shrunk to fit inside the border. The canvas size remains unchanged.BorderType::Expand: The border is added to the outside of the image, which expands the total canvas size.