pub fn get_filemeta(buf: &[u8]) -> Result<(u32, u32)>
Returns the (width, height) of the given image buffer.
(width, height)