fixed various bugs

- forgot "self." before "name_fmt"
- image keys where off by one