It can be done via database only, what is the reason you want to change default images pruning settings?