Implement shapelet.fitImage and add unit test for it
(#350)
Put back getPaddedSize, which I apparently lost at some point.
(#350)
Fix indentation
(#350)