bugfix: validation of images didn't work anymore