refactor image spec
test refactoring