use local variable for grouped and merged lines
minor naming
no server errer when requesting category image for categroy without models