Removed type from info  header and reading image type seperatly