fixed a bug regarding delivering preview images and modified some more error messages