Minor fix

Corrected error handling of non-matching images and texts