Generalized the image filters applied to image conversion scripts and added the histogram filter.