image_to_mat function

Convert an image to a data.frame