Implement a function that splits a grayscale image into non-overlapping square patches, flattens each patch into a row vector to form a patch embedding matrix, and then reconstructs the original image from these flattened patches.
Given a 2D image of shape (H, W) and a patch size p (where H and W are divisible by p), your function should:
Return the reconstructed image as a nested Python list.
If H or W is not divisible by p, return -1.