cleaning-up parameters / allowing for more patches than images