Update assign4/src/MyImage.java

added test method