Minor (lint) fixes
Added/refactored some specs, added integration test for /image endpoint