Add image_differ and image_avgcolor functions.