Make scopes lambdas.

In preparation for rails 4.
Test all params of gend image create.
Style changes for rubocop.