warnings now treated as errors. Extracted version number from image header