Let's consider an image which is either Truck or Car.
If you report that the probability of Truck is q, there will be 1 − (1 − q)2 chance of winning $5 if it is a Truck; and 1 − q2 chance of winning the $5 if it is a Car.
Why should you truthfully report?
Suppose you actually think the probability of a Dog is π, which does not necessarily equal to q, then your overall probability of getting $5 is
(1 − (1 − q)2)*π + (1 − q2)*(1-π)
After doing some math, you will see that it is maximized when q = π.