does this pass linting? would have thought it would have complained about the redefinition of img