html image resize fixed, tests pass