test image for peaks