Fix for homepage and permissions when there are no images at all.
Update auto-generated schema.rb.