Fixing build error and error on machines with >64 supported image formats