Fix issue with incorrect pixel comparion and image loading.