image vout: assigning -1 to an unsigned int is not that clever.