Fix wrong picture format being used to generate black/last-frame