Parse the end of file name to get widthxheight and format.