Remove masked staff from image