added image testing to rspec tests