fixes for image assertions