fix warnings in imageprocessor.cpp