Implement the option to use the horizontal and vertical guides for the image split.
(cherry picked from commit a97b4598b6148b9ee0c6abb8814e80321808f141)