[sfImageHandlerPlugin] add `square' option for sf_image_path (fixes #3356)

(cherry picked from commit f0be644f44ef7d51fb8d310f5789557dc49e60c8)