Py3 corrections for image comparison tests