typo causing fatal error redeclare addImage