modified for new imageprocessor params