Fixed bugs on image width for the validator