Return true when image is encoded to successfully.