// loop for check what button get clicked
for (int i = 0; i < menu.size(); i++) {
if ( e.getSource() == menu.get(i) ) {
imageBkp = image.clone();
attr = new MarvinAttributes();
mask = new MarvinImageMask(100,100);
System.out.println(mask.getMaskArray());
if ( menu.get(i).getText() == "Reset" ) {