Removed java.io.* from Spims and PatternObject