Update assign4/src/MyImage.java

added test method
Merge pull request #2 from vuanhn/patch-2

Update assign4/src/MyImage.java