Fix memory leaking in image processing (save features in image class by default)