Fix notices and update max img size cfg