Only encode images with edges