add max rows in images controller