unit tests
fix for image processing in pdf output