Minor enhancement: allow to process None-images. It allows to reduce amount of code.